<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class Template</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class Template</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
													<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
						|											<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Template</p>
<p class="description"><p>The Template class manages all output in the  admin area. Instead of outputing in a procedural  way, this class stores all output as it is  registered and then outputs it all at the end of  execution. The class also compresses the outputed  content.</p><p>USING THE CLASS</p><p>There are different areas of the template that  you can output code to:</p><p>title - the title of the page  menu - the menu of the page  content - the main content area of the page</p><p>You can add output to these areas like so:</p><p>$Template-&gt;add( 'title', 'Admin Page Name' );</p><p>This class is used so that at any stage of  execution you can add output to any part of  the template, rather than doing everything  strictly proceduarily.</p><p>As well as handling html this class handles CSS  and javascript. It packs javascript, compresses  CSS and caches it.</p><p>CSS VARIABLES</p><p>This class currently only makes one variable  available in CSS but this may be expanded on  in the future.</p><p>%SITEURL%  to load images properly the %SITEURL% var  should be used. The CSS will be parsed by  this class and that var will be replaced  with the value of the site url if present.</p></p>
	<ul class="tags">
				<li><span class="field">author:</span> Conor Mac Aoidh &lt;<a href="mailto:conormacaoidh@gmail.com">conormacaoidh@gmail.com</a>&gt;</li>
				<li><span class="field">license:</span> <a href="http://furasta.org/licence.txt">The BSD License</a></li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="__inc---class---Template.php.html">/_inc/class/Template.php</a> (line <span class="field">65</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>



	<a name="sec-var-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Variable Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
						<span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
							| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
								</div>
		<div class="info-box-body">
			<div class="var-summary">
																																																																																																																								<div class="var-title">
					<span class="var-type">string</span>
					<a href="#$content" title="details" class="var-name">$content</a>
				</div>
																<div class="var-title">
					<span class="var-type">array</span>
					<a href="#$cssFiles" title="details" class="var-name">$cssFiles</a>
				</div>
																<div class="var-title">
					<span class="var-type">array</span>
					<a href="#$cssSources" title="details" class="var-name">$cssSources</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$diagnosticMode" title="details" class="var-name">$diagnosticMode</a>
				</div>
																<div class="var-title">
					<span class="var-type">string</span>
					<a href="#$head" title="details" class="var-name">$head</a>
				</div>
																<div class="var-title">
					<span class="var-type">string</span>
					<a href="#$javascript" title="details" class="var-name">$javascript</a>
				</div>
																<div class="var-title">
					<span class="var-type">array</span>
					<a href="#$javascriptFiles" title="details" class="var-name">$javascriptFiles</a>
				</div>
																<div class="var-title">
					<span class="var-type">array</span>
					<a href="#$javascriptSources" title="details" class="var-name">$javascriptSources</a>
				</div>
																<div class="var-title">
					<span class="var-type">array</span>
					<a href="#$lang" title="details" class="var-name">$lang</a>
				</div>
																<div class="var-title">
					<span class="var-type">array</span>
					<a href="#$lang_errors" title="details" class="var-name">$lang_errors</a>
				</div>
																<div class="var-title">
					<span class="var-type">string</span>
					<a href="#$menu" title="details" class="var-name">$menu</a>
				</div>
																<div class="var-title">
					<span class="var-type">array</span>
					<a href="#$runtimeError" title="details" class="var-name">$runtimeError</a>
				</div>
																<div class="var-title">
					<span class="var-type">string</span>
					<a href="#$title" title="details" class="var-name">$title</a>
				</div>
											</div>
		</div>
	</div>

	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																		<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
				 
				|
						<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																																				<div class="method-definition">
					static 						<span class="method-result">instance</span>
										<a href="#getInstance" title="details" class="method-name">getInstance</a>
											([<span class="var-type">string</span>&nbsp;<span class="var-name">$value</span> = <span class="var-default">false</span>])
									</div>
																																								
												<div class="method-definition">
											<span class="method-result">Template</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">bool</span>
										<a href="#add" title="details" class="method-name">add</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$type</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$content</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#cssUrls" title="details" class="method-name">cssUrls</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#display" title="details" class="method-name">display</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$type</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#displayErrors" title="details" class="method-name">displayErrors</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#e" title="details" class="method-name">e</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">$word</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#errorToString" title="details" class="method-name">errorToString</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$id</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$params</span> = <span class="var-default">false</span>])
									</div>
																								<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#javascriptUrls" title="details" class="method-name">javascriptUrls</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#loadCSS" title="details" class="method-name">loadCSS</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">$name</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$content</span> = <span class="var-default">false</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">bool</span>
										<a href="#loadJavascript" title="details" class="method-name">loadJavascript</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$content</span> = <span class="var-default">'file'</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">bool</span>
										<a href="#runtimeError" title="details" class="method-name">runtimeError</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$id</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$params</span> = <span class="var-default">false</span>])
									</div>
								</div>
		</div>
	</div>		

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Variables</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
										<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
						
			
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			<a name="var$content" id="$content"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">string</span>
			<span class="var-name">$content</span>
			 = <span class="var-default">''</span>			(line <span class="line-number">127</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">content</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
<a name="var$cssFiles" id="$cssFiles"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">array</span>
			<span class="var-name">$cssFiles</span>
			 = <span class="var-default">array()</span>			(line <span class="line-number">161</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">cssFiles</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
<a name="var$cssSources" id="$cssSources"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">array</span>
			<span class="var-name">$cssSources</span>
			 = <span class="var-default">array()</span>			(line <span class="line-number">169</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">cssSources</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
<a name="var$diagnosticMode" id="$diagnosticMode"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$diagnosticMode</span>
			 = <span class="var-default"> DIAGNOSTIC_MODE</span>			(line <span class="line-number">86</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">diagnosticMode</p>
<p class="description"><p>re-creates the javascript cache without compression  for diagnostic reasons</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
<a name="var$head" id="$head"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">string</span>
			<span class="var-name">$head</span>
			 = <span class="var-default"> ''</span>			(line <span class="line-number">103</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">head</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
<a name="var$javascript" id="$javascript"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">string</span>
			<span class="var-name">$javascript</span>
			 = <span class="var-default">''</span>			(line <span class="line-number">137</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">javascript</p>
<p class="description"><p>used to store page specific javascript</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
<a name="var$javascriptFiles" id="$javascriptFiles"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">array</span>
			<span class="var-name">$javascriptFiles</span>
			 = <span class="var-default">array()</span>			(line <span class="line-number">145</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">javascriptFiles</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
<a name="var$javascriptSources" id="$javascriptSources"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">array</span>
			<span class="var-name">$javascriptSources</span>
			 = <span class="var-default">array()</span>			(line <span class="line-number">153</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">javascriptSources</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
<a name="var$lang" id="$lang"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">array</span>
			<span class="var-name">$lang</span>
			 = <span class="var-default">array( )</span>			(line <span class="line-number">185</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">lang</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
<a name="var$lang_errors" id="$lang_errors"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">array</span>
			<span class="var-name">$lang_errors</span>
			 = <span class="var-default">array( )</span>			(line <span class="line-number">177</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">lang_errors</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
<a name="var$menu" id="$menu"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">string</span>
			<span class="var-name">$menu</span>
			 = <span class="var-default">''</span>			(line <span class="line-number">119</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">menu</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
<a name="var$runtimeError" id="$runtimeError"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">array</span>
			<span class="var-name">$runtimeError</span>
			 = <span class="var-default">array( )</span>			(line <span class="line-number">111</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">runtineError</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
<a name="var$title" id="$title"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">string</span>
			<span class="var-name">$title</span>
			 = <span class="var-default"> ''</span>			(line <span class="line-number">94</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">title</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
						
		</div>
	</div>
	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
																	<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="methodgetInstance" id="getInstance"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">static method getInstance</span> (line <span class="line-number">217</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">getInstance</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">instance</span>
		<span class="method-name">
			getInstance
		</span>
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$value</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$value</span><span class="var-description">: , true if new instance should be made</span>			</li>
				</ul>
		
			
	</div>

<a name="method__construct" id="__construct"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">Constructor __construct</span> (line <span class="line-number">195</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">__construct</p>
<p class="description"><p>loads up the language files, filters them through  plugin language files</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">Template</span>
		<span class="method-name">
			__construct
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodadd" id="add"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">add</span> (line <span class="line-number">247</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">add</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			add
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$type</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$content</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$type</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$content</span>			</li>
				</ul>
		
			
	</div>
<a name="methodcssUrls" id="cssUrls"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">cssUrls</span> (line <span class="line-number">508</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">cssUrls</p>
<p class="description"><p>Returns a unique URL to load which  will contain all of the CSS added  during runtime.</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			cssUrls
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methoddisplay" id="display"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">display</span> (line <span class="line-number">265</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">display</p>
	<ul class="tags">
				<li><span class="field">return:</span> or bool false</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			display
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$type</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$type</span>			</li>
				</ul>
		
			
	</div>
<a name="methoddisplayErrors" id="displayErrors"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">displayErrors</span> (line <span class="line-number">392</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">displayErrors</p>
<p class="description"><p>displays both runtime and system errors</p></p>
	<ul class="tags">
				<li><span class="field">todo:</span> change to display different class for runtime and system errors</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			displayErrors
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methode" id="e"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">e</span> (line <span class="line-number">290</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">e</p>
<p class="description"><p>translates a word from english to the currently  selected language. words must be pre-defined in the  language file or the language file must be added to  via a plugin filter</p><p>if no match is found returns original string</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			e
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$word</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$word</span>			</li>
				</ul>
		
			
	</div>
<a name="methoderrorToString" id="errorToString"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">errorToString</span> (line <span class="line-number">371</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">errorToString</p>
<p class="description"><p>Converts an error id to the corresponding  lang string without adding it to the runtime  error array</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			errorToString
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$id</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$params</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$id</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$params</span><span class="var-description">: or array $params</span>			</li>
				</ul>
		
			
	</div>
<a name="methodjavascriptUrls" id="javascriptUrls"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">javascriptUrls</span> (line <span class="line-number">455</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">javascriptUrls</p>
<p class="description"><p>Returns a unique URL to load which will  contain all of the javascript loaded  during runtime.</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			javascriptUrls
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodloadCSS" id="loadCSS"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">loadCSS</span> (line <span class="line-number">487</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			loadCSS
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$name</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$content</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$name</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$content</span>			</li>
				</ul>
		
			
	</div>
<a name="methodloadJavascript" id="loadJavascript"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">loadJavascript</span> (line <span class="line-number">430</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">loadJavascript</p>
<p class="description"><p>This function is used to load javascript files  or a string of javascript without the script tags.</p><p>To add a file:  $Template-&gt;loadJavascript( 'path/to/file' );</p><p>To add a string of javascript:  $Template-&gt;loadJavascript( 'UNIQUE_NAME_TO_IDENTIFY_CODE', $code );</p><p>The unique name above will be used to create the  unique URL later. The names should follow the  scripts purpose, such as FURASTA_ADMIN_PAGES_LIST</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			loadJavascript
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$content</span> = <span class="var-default">'file'</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$name</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$content</span><span class="var-description">: optional</span>			</li>
				</ul>
		
			
	</div>
<a name="methodruntimeError" id="runtimeError"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">runtimeError</span> (line <span class="line-number">307</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">runtimeError</p>
<p class="description"><p>register a runtime error by passing an id of the error  in the language file</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			runtimeError
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$id</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$params</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$id</span><span class="var-description">: of error in language file or string if error is not in language file</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$params</span><span class="var-description">: optional, can be string or array with multiple params</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Thu, 07 Jun 2012 18:22:50 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.4</a>
	</p>
	</div></body>
</html>